package com.cyzy.service.impl;

import com.cyzy.mapper.CourseOrderMapper;
import com.cyzy.pojo.CourseOrder;
import com.cyzy.service.CourseOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CourseOrderServiceImpl implements CourseOrderService {

    @Autowired
    private CourseOrderMapper courseOrderMapper;

    @Override
    public List<CourseOrder> selectAll() {
        return courseOrderMapper.selectAllOrder();
    }

    @Override
    public List<CourseOrder> selectByStatus(String orderStatus) {
        return courseOrderMapper.selectOrderByStatus(orderStatus);
    }
}
